<?php
class ProductKoszulki extends AppModel {
	var $name = 'ProductKoszulki';
	var $useTable = 'products';
	var $useDbConfig = 'koszulkizlogo';
	var $primaryKey = 'products_id';
	var $displayField = 'products_id';
	//The Associations below have been created with all possible keys, those that are not needed can be removed

// 	var $belongsTo = array(
// 		'ProductsTaxClass' => array(
// 			'className' => 'ProductsTaxClass',
// 			'foreignKey' => 'products_tax_class_id',
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => ''
// 		),
// 		'Manufacturers' => array(
// 			'className' => 'Manufacturers',
// 			'foreignKey' => 'manufacturers_id',
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => ''
// 		),
// 		'ProductsAvailability' => array(
// 			'className' => 'ProductsAvailability',
// 			'foreignKey' => 'products_availability_id',
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => ''
// 		),
// 		'ProductsJm' => array(
// 			'className' => 'ProductsJm',
// 			'foreignKey' => 'products_jm_id',
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => ''
// 		)
// 	);

	var $hasAndBelongsToMany = array(
// 		'DiscountCouponsTo' => array(
// 			'className' => 'DiscountCouponsTo',
// 			'joinTable' => 'discount_coupons_to_products',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'discount_coupons_to_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'Order' => array(
// 			'className' => 'Order',
// 			'joinTable' => 'orders_products',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'order_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'OductsAttribute' => array(
// 			'className' => 'OductsAttribute',
// 			'joinTable' => 'orders_products_attributes',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'oducts_attribute_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'OductsDownload' => array(
// 			'className' => 'OductsDownload',
// 			'joinTable' => 'orders_products_download',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'oducts_download_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'Accesory' => array(
// 			'className' => 'Accesory',
// 			'joinTable' => 'products_accesories',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'accesory_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'Attribute' => array(
// 			'className' => 'Attribute',
// 			'joinTable' => 'products_attributes',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'attribute_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'AttributesDownload' => array(
// 			'className' => 'AttributesDownload',
// 			'joinTable' => 'products_attributes_download',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'attributes_download_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'Availability' => array(
// 			'className' => 'Availability',
// 			'joinTable' => 'products_availability',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'availability_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
		'LanguageKoszulki' => array(
			'className' => 'LanguageKoszulki',
			'joinTable' => 'products_description',
			'foreignKey' => 'products_id',
			'associationForeignKey' => 'language_id',
			'unique' => true,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		),
// 		'ExtraField' => array(
// 			'className' => 'ExtraField',
// 			'joinTable' => 'products_extra_fields',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'extra_field_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'Jm' => array(
// 			'className' => 'Jm',
// 			'joinTable' => 'products_jm',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'jm_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'Notification' => array(
// 			'className' => 'Notification',
// 			'joinTable' => 'products_notifications',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'notification_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'Option' => array(
// 			'className' => 'Option',
// 			'joinTable' => 'products_options',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'option_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'OptionsProduct' => array(
// 			'className' => 'OptionsProduct',
// 			'joinTable' => 'products_options_products',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'options_product_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'OptionsValue' => array(
// 			'className' => 'OptionsValue',
// 			'joinTable' => 'products_options_values',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'options_value_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'OptionsValuesToProductsOption' => array(
// 			'className' => 'OptionsValuesToProductsOption',
// 			'joinTable' => 'products_options_values_to_products_options',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'options_values_to_products_option_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'Stock' => array(
// 			'className' => 'Stock',
// 			'joinTable' => 'products_stock',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'stock_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'TextAttribute' => array(
// 			'className' => 'TextAttribute',
// 			'joinTable' => 'products_text_attributes',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'text_attribute_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'TextAttributesEnabled' => array(
// 			'className' => 'TextAttributesEnabled',
// 			'joinTable' => 'products_text_attributes_enabled',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'text_attributes_enabled_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'ToCategory' => array(
// 			'className' => 'ToCategory',
// 			'joinTable' => 'products_to_categories',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'to_category_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		),
// 		'ToProductsExtraField' => array(
// 			'className' => 'ToProductsExtraField',
// 			'joinTable' => 'products_to_products_extra_fields',
// 			'foreignKey' => 'product_id',
// 			'associationForeignKey' => 'to_products_extra_field_id',
// 			'unique' => true,
// 			'conditions' => '',
// 			'fields' => '',
// 			'order' => '',
// 			'limit' => '',
// 			'offset' => '',
// 			'finderQuery' => '',
// 			'deleteQuery' => '',
// 			'insertQuery' => ''
// 		)
	);

}
